package com.dlnu.shoping.shopping.mapper;

import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.dlnu.shoping.shopping.entity.Ad;
import org.apache.ibatis.annotations.Select;

/**
 * (Ad)表数据库访问层
 *
 * @author makejava
 * @since 2023-06-29 10:08:01
 */
@Mapper
public interface AdDao extends BaseMapper<Ad> {
    @Select(value = "select ad_id,a.pro_id,p.picture from ad a,product_information p where a.pro_id=p.pro_id")
    List<HashMap> search();

}

